package com.zhiyou.dao;

import com.zhiyou.entity.Lessee;
import com.zhiyou.entity.Rent;
import com.zhiyou.entity.User;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface LesseeMapper extends Mapper<Lessee> {
    //查询目前正在租房的租户信息
    List<Lessee> getAllAndStatusIsZone();
    //根据条件模糊查询lessee
    List<Lessee> getLesseeLikeAll(String likes);
    //假删除租户信息
    int deleteLesseeById(Integer id);
    //新增租户信息
    int addLessee(Lessee lessee);
    //修改租户信息
    int updateLesseeById(Lessee lessee);
    //查询租户是否在租房
    List<Lessee> selectLesseeIsZuFangIng(Integer id);
}